package router

import (
	"gitee.com/worklz/dtm-tcc-demo/gateway/app/controller"

	"github.com/gin-gonic/gin"
)

func Router(router *gin.Engine) {
	// API
	apiRouter := router.Group("/api")
	{
		// 购买
		purchaseController := controller.PurchaseController{}
		apiRouter.POST("/purchase", purchaseController.Handle)
		// 订单
		orderController := controller.OrderController{}
		apiRouter.POST("/order/detail", orderController.Detail)
	}

}
